import 'package:camera/camera.dart';

import '../../mine/bean/productInfoBean.dart';
import '../bean/home_info_bean.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
class HomePageState {
  List<HomeInfoBean> list=[];
  late bool isAgreeUserPrivary=false;
  num? showProductFlag=2;// 首页是否现实产品列表开关，1.显示2.不显示
  String? noticeMsg='';
  String? imgUrl='';
  String? linkUrl='';
  List<HomeProductList>? productList=[];
  List<BannerList>? bannerList=[];
  DefaultProductVo? defaultProductVO;
  num? indexStatus=0;// 1未认证 2未借款 3审核中 4审核拒绝 5审核通过（待取款）6待还款
  num? isShowChannelAuth=0;//0身份证隐藏 1显示身份证
  late RefreshController refreshController;
  String homeTitle='资料审核通过，最高可借(元)';
  String homeContent='恭喜您已通过预审，完善资料系统将为您推送产品';
  String homeBtn='立即完善资料';
  String? loanRemind='';
  late List<CameraDescription>? cameras;
  late CameraDescription firstCamera;
  num? amount=0;
  String? name='';
  String? popLinkUrl='';
  num id=0;
  String? agreementName ='';
  String? agreementContent ='';
  String? content='';
  String city='';
  num? headLoanMinRate=0;
  String? headLoanAmount='';
  String? headLinkUrl='';
  num? headProductId=0;
  String? headProductName='';
  String? headLoanPeriod='';
  bool isLogin=false;
  HomePageState() {
    defaultProductVO=DefaultProductVo();
    refreshController = RefreshController(initialRefresh: false);
    list.add(HomeInfoBean('images/home_reason1.png', '安全', '持牌金融机构'));
    list.add(HomeInfoBean('images/home_reason2.png', '放款', '最快5分钟放款'));
    list.add(HomeInfoBean('images/home_reason.png', '灵活', '随心可选 更省心'));
    list.add(HomeInfoBean('images/home_reason4.png', '额度', '最高可借20万'));
  }
}
